package com.whq.thrift.api.web.admin.db.methodinfo;

import java.io.Serializable;
import java.util.Date;

public class MethodInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;
	private String methodName;
	private Date updateTime;
	private Integer isTob;
	private Integer needVerifyTicket;
	private String verifyModuleId;
	private String signatureIgnoreParams;
	private Integer methodStatus;
	private String introFunc;
	private String introRequestParams;
	private String introResponse;
	private String introDeveloper;
	private String introComment;
	private Date createTime;
	private String verifyModuleMethod;
	private String methodStatusStr="";
	private String url;

	private Integer timeoutMs;
	private Long maxRunCountPreSecond;

	private String methodModuleId;

	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getMethodStatusStr() {
		if (this.methodStatus == 0) {
			this.methodStatusStr = "开发中";
		} else if (this.methodStatus == 1) {
			this.methodStatusStr = "运行";
		} else if (this.methodStatus == 2) {
			this.methodStatusStr = "下线";
		}
		return this.methodStatusStr;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getIsTob() {
		return isTob;
	}

	public void setIsTob(Integer isTob) {
		this.isTob = isTob;
	}

	public Integer getNeedVerifyTicket() {
		return needVerifyTicket;
	}

	public void setNeedVerifyTicket(Integer needVerifyTicket) {
		this.needVerifyTicket = needVerifyTicket;
	}

	public String getVerifyModuleId() {
		return verifyModuleId;
	}

	public void setVerifyModuleId(String verifyModuleId) {
		this.verifyModuleId = verifyModuleId;
	}

	public String getSignatureIgnoreParams() {
		return signatureIgnoreParams;
	}

	public void setSignatureIgnoreParams(String signatureIgnoreParams) {
		this.signatureIgnoreParams = signatureIgnoreParams;
	}

	public Integer getMethodStatus() {
		return methodStatus;
	}

	public void setMethodStatus(Integer methodStatus) {
		this.methodStatus = methodStatus;
	}

	public String getIntroFunc() {
		return introFunc;
	}

	public void setIntroFunc(String introFunc) {
		this.introFunc = introFunc;
	}

	public String getIntroRequestParams() {
		return introRequestParams;
	}

	public void setIntroRequestParams(String introRequestParams) {
		this.introRequestParams = introRequestParams;
	}

	public String getIntroResponse() {
		return introResponse;
	}

	public void setIntroResponse(String introResponse) {
		this.introResponse = introResponse;
	}

	public String getIntroDeveloper() {
		return introDeveloper;
	}

	public void setIntroDeveloper(String introDeveloper) {
		this.introDeveloper = introDeveloper;
	}

	public String getIntroComment() {
		return introComment;
	}

	public void setIntroComment(String introComment) {
		this.introComment = introComment;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getVerifyModuleMethod() {
		return verifyModuleMethod;
	}

	public void setVerifyModuleMethod(String verifyModuleMethod) {
		this.verifyModuleMethod = verifyModuleMethod;
	}

	public Integer getTimeoutMs() {
		return timeoutMs;
	}

	public void setTimeoutMs(Integer timeoutMs) {
		this.timeoutMs = timeoutMs;
	}

	public Long getMaxRunCountPreSecond() {
		return maxRunCountPreSecond;
	}

	public void setMaxRunCountPreSecond(Long maxRunCountPreSecond) {
		this.maxRunCountPreSecond = maxRunCountPreSecond;
	}

	public String getMethodModuleId() {
		return methodModuleId;
	}

	public void setMethodModuleId(String methodModuleId) {
		this.methodModuleId = methodModuleId;
	}

	public String toString() {
		StringBuilder buf = new StringBuilder(30);
		buf.append("{");
		buf.append(id);
		buf.append(",");
		buf.append(methodName);
		buf.append(",");
		buf.append(",");
		buf.append(isTob);
		buf.append(",");
		buf.append(needVerifyTicket);
		buf.append(",");
		buf.append("}");
		return buf.toString();
	}
}
